package com.hundsun.cprs.yyt.service.trade.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hundsun.cprs.yyt.service.trade.domain.TradeRollbackFlow;
import com.hundsun.cprs.yyt.service.trade.domain.query.TradeRollbackFlowQuery;

public interface TradeRollbackFlowDao {
    int deleteByPrimaryKey(Long id);

    int insert(TradeRollbackFlow record);

    int insertSelective(TradeRollbackFlow record);

    TradeRollbackFlow selectByPrimaryKey(Long id);
    
    TradeRollbackFlow selectByEntrustIdAndRollbackStatus(@Param("entrustId") Long entrustId,@Param("rollbackStatus") Integer rollbackStatus);
    
    List<TradeRollbackFlow> selectByQuery(TradeRollbackFlowQuery query);

    int updateByPrimaryKeySelective(TradeRollbackFlow record);

    int updateByPrimaryKey(TradeRollbackFlow record);
}